﻿using System;
using Microsoft.AspNetCore.Authorization;

namespace WebApplication1.IdentityServer
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
    public class HicapAuthorizeAttribute : AuthorizeAttribute
    {
        public HicapAuthorizeAttribute(string authCode = "")
        {
            AuthCode = authCode;
        }

        public string AuthCode { get; set; }
    }
}